package com.atguigu.imperial.court.config;

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * ClassName: MyMVCConfig
 * Description:
 * Date: 2022/09/21 PM 12:20
 * <p>
 * project: pro07-demo-imperial-court-micro-service
 * package: com.atguigu.imperail.court.config
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class MyMVCConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("index");
    }
}
